<%
if(!user){
%>
    <legend>登录</legend>
    <form class="form-horizontal" action="/login" method="post">
        <div class="control-group">
              <label class="control-label" for="username">登录码</label>
              <div class="controls">
                    <input class="input-xlarge" name="cmd" value="bG9naW46e25hbWU6J2thbmUnLHBhc3N3b3JkOicxMjM0NTYnfQ==" />
                    <p class="help-block">加密后的登录命令码。</p>
              </div>
        </div>
        <div class="form-actions">
            <input class="btn btn-primary" type="submit" value="登录" />
        </div>
    </form>
<%
}else{
%>
    <legend><%= user.name %></legend>
    <p>Welcome !</p>
    <p><a href="cmdTest">命令测试入口</a></p>
<%
}
%>